#!/usr/bin/node

const cp = require('child_process');

let child = cp.spawn('./03-child.js',[],{detach:true,stdio:['ignore',1,2]});

//子进程的流连接到父进程的标准输出
//child.stdout.pipe(process.stdout);

child.unref();

console.log(`I am your father Process:${process.pid}`);

setTimeout(()=>{
  console.log('good bye');
  process.exit();
},5000)
